//
//  HomeViewController.h
//  IWISHING
//
//  Created by Phan Ba Minh on 1/19/13.
//  Copyright (c) 2013 kidbaw. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KIDBAWAdvertisementManager.h"
#import "APIRequester.h"

@interface HomeViewController : UIViewController <KIDBAWAdvertisementProtocol, ADBannerViewDelegate, UITextViewDelegate, UIGestureRecognizerDelegate> {
    KIDBAWAdvertisementManager                                  *_adsManager;
    
    NSInteger                                                   _offsetMain;
    NSInteger                                                   _limitMain;
    APIRequester                                                *_APIRequester_Phongdep;
    APIRequester                                                *_APIRequester;
    BOOL                                                        _isRequesting;
    NSMutableArray                                              *_arrayMain;
    
    BOOL                                                        _isRequestingTheNext;
    BOOL                                                        _isInitiationAtTheFirstTime;
    
    int                                                         _phongdepBannerIndex;
    CFAbsoluteTime                                              _timeLoadNextBanner;
    
    int                                                         _selectedHotlineIndex;
    float                                                       _heightAdBanner;
}
@property (unsafe_unretained, nonatomic) IBOutlet UIButton *btnStart;
@property (strong, nonatomic) IBOutlet UIView *viewPhongDepBanner01;
@property (unsafe_unretained, nonatomic) IBOutlet UIImageView *imageViewPhongDepBanner01_Avatar;
@property (unsafe_unretained, nonatomic) IBOutlet UIImageView *imageViewPhongDepBanner01_Status;
@property (unsafe_unretained, nonatomic) IBOutlet UIButton *btnPhongDepBanner01_Status;
@property (unsafe_unretained, nonatomic) IBOutlet UILabel *lblPhongDepBanner01_Name;
@property (unsafe_unretained, nonatomic) IBOutlet UILabel *lblPhongDepBanner01_Price;
@property (unsafe_unretained, nonatomic) IBOutlet UILabel *lblPhongDepBanner01_Address;
@property (strong, nonatomic) IBOutlet UIView *viewPhongDepBanner02;
@property (unsafe_unretained, nonatomic) IBOutlet UIImageView *imageViewPhongDepBanner02_Avatar;
@property (unsafe_unretained, nonatomic) IBOutlet UIImageView *imageViewPhongDepBanner02_Status;
@property (unsafe_unretained, nonatomic) IBOutlet UIButton *btnPhongDepBanner02_Status;
@property (unsafe_unretained, nonatomic) IBOutlet UILabel *lblPhongDepBanner02_Name;
@property (unsafe_unretained, nonatomic) IBOutlet UILabel *lblPhongDepBanner02_Price;
@property (unsafe_unretained, nonatomic) IBOutlet UILabel *lblPhongDepBanner02_Address;
@property (unsafe_unretained, nonatomic) IBOutlet UIButton *btnAddress;
- (void)loadInterface;
@property (unsafe_unretained, nonatomic) IBOutlet UIButton *btnEmail;
@property (unsafe_unretained, nonatomic) IBOutlet UIButton *btnFacebook;
@property (unsafe_unretained, nonatomic) IBOutlet UIButton *btnHotline01;
@property (unsafe_unretained, nonatomic) IBOutlet UIButton *btnHotline02;
- (IBAction)touchUpInsideButton:(id)sender;

@end
